<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="umsroot.css">
<TITLE>
Dynamic Code
</TITLE>
</HEAD>
<BODY >
<A HREF="umsroot057.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="umsroot066.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H1 CLASS="chapter"><A NAME="htoc159">Chapter&nbsp;11</A>&nbsp;&nbsp;Dynamic Code</H1>

<A NAME="chapdynamic"></A><BR>
<BR>
Support for dynamic code is provided partly for compatibility with
Prolog. Note that ECL<SUP><I>i</I></SUP>PS<SUP><I>e</I></SUP>provides much better primitives (see
chapter&nbsp;<A HREF="umsroot049.html#chaparrays">9</A>) to support the non-logical storage of information
&ndash; a major use for dynamic predicates in Prolog. <BR>
<BR>
An ECL<SUP><I>i</I></SUP>PS<SUP><I>e</I></SUP> predicate can be made <EM>dynamic</EM>.
That is, it can have clauses added and removed from its definition at run
time.
This chapter discusses how to do this, and what the implications are.<BR>
<BR>
<UL>
<LI><A HREF="umsroot063.html">Compiling Procedures as Dynamic or Static</A>
<LI><A HREF="umsroot064.html">Altering programs at run time</A>
<LI><A HREF="umsroot065.html">Differences between static and dynamic code</A>
</UL>

<BR>
<BR>
<HR WIDTH="50%" SIZE=1><DL CLASS="list"><DT CLASS="dt-list"><A NAME="note15" HREF="umsroot064.html#text15"><FONT SIZE=5>1</FONT></A><DD CLASS="dd-list">It should be remembered that because of the
definition of the syntax of a term, to assert a procedure of the form p
:- q,r it is necessary to enclose it in parentheses:
<TT>assert((p:-q,r))</TT>.
</DL>
<HR>
<A HREF="umsroot057.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="umsroot066.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>
